package intefaceBased;

/**
 * Created with IntelliJ IDEA.
 * User: Gauss
 * Date: 22.10.13
 * Time: 23:40
 * To change this template use File | Settings | File Templates.
 */
public class PascalTriangleFactory {
    public static AbstractPascalTriangle getPascalTriangle(int type) {
        return type==1?new FactorialPascalTriangle():new OrdinaryPascalTriangle();
    }
}
